/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.hva.web.mvcwebapp.models;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Thijs
 */
@Entity
@Table(name = "assignmentfeedback")
public class AssignmentFeedback implements Serializable {
    
    @Id
    @GeneratedValue
    @Column(name = "feedbackid")
    private int feedbackid;
    @Column(name = "feedbackdescription", length=10000)
    private String feedbackdescription;
    @ManyToOne
    private User user;
    @ManyToOne
    private UploadedAssignments uploadedassingment;
    
    public AssignmentFeedback() {
    }

    /**
     * @return the feedbackid
     */
    public int getFeedbackid() {
        return feedbackid;
    }

    /**
     * @param feedbackid the feedbackid to set
     */
    public void setFeedbackid(int feedbackid) {
        this.feedbackid = feedbackid;
    }

    /**
     * @return the feedbackdescription
     */
    public String getFeedbackdescription() {
        return feedbackdescription;
    }

    /**
     * @param feedbackdescription the feedbackdescription to set
     */
    public void setFeedbackdescription(String feedbackdescription) {
        this.feedbackdescription = feedbackdescription;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * @return the uploadedassingment
     */
    public UploadedAssignments getUploadedassingment() {
        return uploadedassingment;
    }

    /**
     * @param uploadedassingment the uploadedassingment to set
     */
    public void setUploadedassingment(UploadedAssignments uploadedassingment) {
        this.uploadedassingment = uploadedassingment;
    }

    
}
